package com.cyy.hardwarecoding.ui.adapter;

import android.support.annotation.Nullable;

import java.util.List;

/**
 * Created by YYCHEN on 2018/1/16.
 */

public class ActivityListAdapater extends RecyclerViewSimpleAdapter<String>{

    public ActivityListAdapater(@Nullable List<String> dataList, OnItemClickListener<String> listener) {
        super(dataList, listener);
    }

    @Override
    public void bindData(ViewHolder holder, String data) {
        String[] activityNameArray = data.split("\\.");
        holder.tv_name.setText(activityNameArray[activityNameArray.length-1]);
    }
}
